翻訳と辞書
Words near each other
・ Unapproved Drugs Initiative
・ Unaproa
・ Unar
・ Unara
・ Unarchigal
・ Unare River
・ Unari
・ Unarius Academy of Science
・ Unarmed – Best of 25th Anniversary
・ Unarpur railway station
・ Unarthupattu
・ Unaru
・ Unary
・ Unary coding
・ Unary function
Unary language
・ Unary numeral system
・ Unary operation
・ Unas
・ Unas (disambiguation)
・ UNASA UCT
・ Unashamed
・ Unashamed (album)
・ Unashamed (film)
・ Unashamed Desire
・ Unashogi
・ Unassigned Lands
・ Unassisted childbirth
・ Unassisted sailing
・ Unassisted triple play


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Unary language : ウィキペディア英語版
Unary language
In computational complexity theory, a unary language or tally language is a formal language (a set of strings) where all strings have the form 1''k'', where "1" can be any fixed symbol. For example, the language is unary, as is the language . The complexity class of all such languages is sometimes called TALLY.
The name "unary" comes from the fact that a unary language is the encoding of a set of natural numbers in the unary numeral system. Since the universe of strings over any finite alphabet is a countable set, every language can be mapped to a unique set A of natural numbers; thus, every language has a ''unary version'' . Conversely, every unary language has a more compact binary version, the set of binary encodings of natural numbers ''k'' such that 1''k'' is in the language.
Since complexity is usually measured in terms of the length of the input string, the unary version of a language can be "easier" than the original language. For example, if a language can be recognized in O(2''n'') time, its unary version can be recognized in O(''n'') time, because replacing every symbol with a "1" has made the language size logarithmically smaller. More generally, if a language can be recognized in O(f(''n'')) time and O(g(''n'')) space, its unary version can be recognized in O(''n'' + f(log ''n'')) time and O(g(log ''n'')) space (we require O(''n'') time just to read the input string). However, if membership in a language is undecidable, then membership in its unary version is also undecidable.
== Relationships to other complexity classes ==

TALLY is contained in P/poly - the class of languages that can be recognized in polynomial time given an advice function that depends only on the input length. In this case, the required advice function is very simple - it returns a single bit for each input length ''k'' specifying whether 1''k'' is in the language or not.
A unary language is necessarily a sparse language, since for each ''n'' it contains at most one value of length ''n'' and at most ''n'' values of length at most ''n'', but not all sparse languages are unary; thus TALLY is contained in SPARSE.
If there exists a unary language that is NP-complete, then P = NP.〔Piotr Berman. Relationship between density and deterministic complexity of NP-complete languages. In ''Proceedings of the 5th Conference on Automata, Languages and Programming'', pp.63–71. Springer-Verlag. ''Lecture Notes in Computer Science #62''. 1978.〕
This result can be extended to sparse languages.〔S. R. Mahaney. Sparse complete sets for NP: Solution of a conjecture by Berman and Hartmanis. ''Journal of Computer and System Sciences'' 25:130-143. 1982.〕
If ''L'' is a unary language, then ''L
*'' (the Kleene star of ''L'') is a regular language.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Unary language」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.